﻿using Prism.Mvvm;

namespace Com.Lancetinc.Evs.ViewModels
{
    public class ComboBoxItemViewModel<T> : BindableBase
    {
        private string _text;

        public string Text
        {
            get => _text;
            private set => SetProperty(ref _text, value);
        }

        public T Data { get; }

        public ComboBoxItemViewModel(string text)
        {
            Text = text;
        }

        public ComboBoxItemViewModel(string text, T data)
        : this(text)
        {
            Data = data;
        }
    }
}
